﻿namespace RuoYi.Framework.Dto;

/// <summary>
/// 分页输入
/// </summary>
public class PagingInputDto
{
    /// <summary>
    /// 页数
    /// </summary>
    public int PageIndex { get; set; }
    /// <summary>
    /// 页码大小
    /// </summary>
    public int PageSize { get; set; }
    /// <summary>
    /// sql语句使用的跳过多少条记录
    /// </summary>
    public int Skip { get { return (PageIndex - 1) * PageSize; } }
    /// <summary>
    /// 是否正序,0:倒序,1:正序
    /// </summary>
    public int IsAsc { get; set; } = 1;
}